Check whether a number is divisible by another numberΒΆ
Write a python function to check whether a number is
divisible by another number.
Accept two integers values form the user.
def multiple(m, n):
return True if m % n == 0 else False
print(multiple(20, 5))
print(multiple(7, 2))
Output:
True
False